<%--
  Created by IntelliJ IDEA.
  User: 王文尧
  Date: 2024/7/9
  Time: 17:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        // http://localhost:8080/demo2/
        String basePath = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
    %>
3<br/>
    <%=request.getRequestURI()%><br/>
<%=request.getRequestURL()%><br/>
    <%=request.getRemoteAddr()%><br/>
    <%=request.getContextPath()%><br/>
    <%=request.getMethod()%><br/>
    <%=request.getServletPath()%><br/>
<%=request.getQueryString()%><br/>
<%=request.getServerName()%><br/>
<%=request.getServerPort()%><br/>
<%=request.getLocalName()%><br/>
<%=request.getLocalPort()%><br/>
    <img src="../img/111.jpeg" width="100px">
    <%--网页版绝对路径--%>
    <img src="<%=basePath%>img/111.jpeg" width="100px"/>
</body>
</html>
